<div id="friends_profile">
    <div class="box250titleorange">
        <div class="top-titre">
            {if $smarty.session.user.id == $user.id}
            <h2>Mes amis</h2>
            {else}
            <h2>Ses amis</h2>
            {/if}
        </div>
        <div class="redtop-nb">{$friends|@sizeof}</div>
        <div class="voirtous">
            {if $friends|@sizeof > 0}
                <a href="{$user.url}amis/" class="popup" title="Les amis de Thomas Lang">Voir tous...</a>
            {/if}
        </div>
    </div>
    <div class="box250content">
        <div class="boite-ami">
            {if $friends|@sizeof > 0}
                {section name=z loop=$friends max=8}
                <div class="box">
                    <div class="img">
                        <a href="{$friends[z].url}" title="Profil de {$friends[z]}">
                            <img src="{$friends[z].mini}" alt="{$friends[z]}" />
                        </a>
                    </div>
                    <div class="nom">
                        <a href="{$friends[z].url}" title="Profil de {$friends[z]}">{$friends[z]}</a>
                    </div>
                </div>
                {/section}
            {else}
                {$user} n'a pas encore d'ami.
            {/if}
        </div>
        <div class="clear"></div>
    </div>
    <div class="box250ass"></div>
</div>